package com.question.common.utils;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;

/**
 * 雪花算法ID生成工具
 *
 * @author star
 * @since 2022-02-07
 */
public class IdUtil {


    public static long generateLongId() {
        return IdWorker.getId();
    }

    public static String generateId() {
        return String.valueOf(IdWorker.getId());
    }

}
